import Main from '@/components/main'
export const purchaseRouter = [
  {
    path: '/stores_authority',
    name: 'stores_authority',
    meta: {
      icon: '_iconshangpinguanli',
      title: '商品管理',
      showAlways: true,
      snMenu: 'stores_authority',
      sn: 'moms:scs:productview'
    },
    component: Main,
    children: [
      {
        path: 'stores_list',
        name: 'stores_list',
        meta: {
          title: '商品列表',
          snMenu: 'stores_list',
          sn: 'moms:scs:productview'
        },
        component: () => import('@/view/supply-chain/store-authority/list.vue')
      },
      {
        path: 'stores_create',
        name: 'stores_create',
        meta: {
          title: '新增商品',
          snMenu: 'stores_create',
          sn: 'moms:scs:productcreate',
          hideInMenu: true
        },
        component: () => import('@/view/supply-chain/store-authority/create.vue')
      },
      {
        path: 'stores_detail',
        name: 'stores_detail',
        meta: {
          title: '商品详情',
          snMenu: 'stores_detail',
          sn: 'moms:scs:productdetail',
          hideInMenu: true
        },
        component: () => import('@/view/supply-chain/store-authority/detail.vue')
      },
      {
        path: 'stores_edit',
        name: 'stores_edit',
        meta: {
          title: '商品编辑',
          snMenu: 'stores_edit',
          sn: 'moms:scs:productupdate',
          hideInMenu: true
        },
        component: () => import('@/view/supply-chain/store-authority/edit.vue')
      }
    ]
  },
  {
    path: '/store_clmanege',
    name: 'store_clmanege',
    meta: {
      icon: '_iconshangpinguanli',
      title: '商品后台分类',
      showAlways: true,
      snMenu: 'store_clmanege',
      sn: 'moms:scs:productcategoryview'
    },
    component: Main,
    children: [
      {
        path: 'stores_cate',
        name: 'stores_cate',
        meta: {
          title: '分类列表',
          snMenu: 'stores_cate',
          sn: 'moms:scs:productcategoryview'
        },
        component: () => import('@/view/supply-chain/store-clmanege/cate.vue')
      },
      {
        path: 'stores_next_cate',
        name: 'stores_next_cate',
        meta: {
          title: '下级列表',
          hideInMenu: true,
          snMenu: 'stores_cate',
          sn: 'moms:scs:productcategoryview'
        },
        component: () => import('@/view/supply-chain/store-clmanege/next-cate.vue')
      },
      {
        path: 'stores_cate_create',
        name: 'stores_cate_create',
        meta: {
          title: '添加分类',
          hideInMenu: true,
          snMenu: 'stores_cate',
          sn: 'moms:scs:productcategorycreate'
        },
        component: () => import('@/view/supply-chain/store-clmanege/create.vue')
      },
      {
        path: 'stores_cate_edit',
        name: 'stores_cate_edit',
        meta: {
          title: '编辑分类',
          hideInMenu: true,
          snMenu: 'stores_cate',
          sn: 'moms:scs:productcategoryupdate'
        },
        component: () => import('@/view/supply-chain/store-clmanege/edit.vue')
      // },
      // {
      //   path: 'stores_cate_details',
      //   name: 'stores_cate_details',
      //   meta: {
      //     title: '查看分类',
      //     hideInMenu: true,
      //     snMenu: 'stores_cate',
      //     sn: 'moms:scs:productcategorydetail'
      //   },
      //   component: () => import('@/view/supply-chain/store-clmanege/details.vue')
      }
    ]
  },
  {
    path: '/purchase_supplier',
    name: 'purchase_supplier',
    meta: {
      icon: '_iconshangpinguanli',
      title: '供应商信息',
      showAlways: true,
      snMenu: 'purchase_supplier',
      sn: 'moms:scs:supplierview'
    },
    component: Main,
    children: [
      {
        path: 'supplier_list',
        name: 'supplier_list',
        meta: {
          title: '供应商列表',
          snMenu: 'supplier_list',
          sn: 'moms:scs:supplierview'
        },
        component: () => import('@/view/supply-chain/supplier/list.vue')
      },
      {
        path: 'supplier_add',
        name: 'supplier_add',
        meta: {
          title: '添加供应商',
          hideInMenu: true,
          snMenu: 'supplier_list',
          sn: 'moms:scs:suppliercreate'
        },
        component: () => import('@/view/supply-chain/supplier/create.vue')
      },
      {
        path: 'supplier_edit/:id',
        name: 'supplier_edit',
        meta: {
          title: '编辑供应商',
          hideInMenu: true,
          snMenu: 'supplier_list',
          sn: 'moms:scs:supplierupdate'
        },
        component: () => import('@/view/supply-chain/supplier/edit.vue')
      },
      {
        path: 'supplier_detail/:id',
        name: 'supplier_detail',
        meta: {
          title: '查看供应商',
          hideInMenu: true,
          // notCache: true,
          snMenu: 'supplier_list',
          sn: 'moms:scs:supplierdetail'
        },
        component: () => import('@/view/supply-chain/supplier/detail.vue')
      }
    ]
  },
  {
    path: '/purchase_machine',
    name: 'purchase_machine',
    meta: {
      icon: '_iconshangpinguanli',
      title: '机台设备',
      showAlways: true,
      snMenu: 'purchase_machine',
      sn: 'moms:scs:machineview'
    },
    component: Main,
    children: [
      {
        path: 'machine_list',
        name: 'machine_list',
        meta: {
          title: '机台列表',
          snMenu: 'machine_list',
          sn: 'moms:scs:machineview'
        },
        component: () => import('@/view/supply-chain/machine/list.vue')
      }
      // {
      //   path: 'machine_edit',
      //   name: 'machine_edit',
      //   meta: {
      //     title: '编辑机台',
      //     snMenu: 'machine_list',
      //     sn: 'moms:scs:machineupdate'
      //   },
      //   component: () => import('@/view/supply-chain/machine/edit.vue')
      // }
    ]
  },
  {
    path: '/purchase_entrepot',
    name: 'purchase_entrepot',
    meta: {
      icon: '_iconshangpinguanli',
      title: '仓库列表',
      showAlways: true,
      snMenu: 'purchase_entrepot',
      sn: 'moms:scs:wharehouseview'
    },
    component: Main,
    children: [
      {
        path: 'entrepot_list',
        name: 'entrepot_list',
        meta: {
          title: '仓库列表',
          snMenu: 'entrepot_list',
          sn: 'moms:scs:wharehouseview'
        },
        component: () => import('@/view/supply-chain/entrepot/list.vue')
      },
      {
        path: 'entrepot_add',
        name: 'entrepot_add',
        meta: {
          title: '添加仓库',
          hideInMenu: true,
          snMenu: 'entrepot_list',
          sn: 'moms:scs:wharehousecreate'
        },
        component: () => import('@/view/supply-chain/entrepot/create.vue')
      },
      {
        path: 'entrepot_edit/:whCode',
        name: 'entrepot_edit',
        meta: {
          title: '编辑仓库',
          hideInMenu: true,
          snMenu: 'entrepot_list',
          sn: 'moms:scs:wharehouseupdate'
        },
        component: () => import('@/view/supply-chain/entrepot/edit.vue')
      },
      {
        path: 'entrepot_detail/:whCode',
        name: 'entrepot_detail',
        meta: {
          title: '仓库详情',
          notCache: true,
          hideInMenu: true,
          snMenu: 'entrepot_list',
          sn: 'moms:scs:wharehousedetail'
        },
        component: () => import('@/view/supply-chain/entrepot/detail.vue')
      }
    ]
  }
]
